package Exce;

public class Demo01 extends Throwable {
    private int detail;

    public Demo01(int a) {
        this.detail = a;
    }

    @Override
    public String toString() {
        return "Demo01{" +
                "detail=" + detail +
                '}';
    }
}

